<template>
  <div class="body">
    <el-row>
      <el-col :span="4" ><div class="grid-content"><PageHeader></PageHeader></div></el-col>
      <el-col :span="13" :offset="1">
        <el-container>
          <el-header>
            <el-row>
              <el-col :span="10" ><div class="grid-content"></div></el-col>
              <el-col :span="13">
                <SerachBar></SerachBar>
              </el-col>
            </el-row>
          </el-header>
        </el-container>
        <div class="grid-content bg-purple"><PostForum></PostForum></div>
        <div class="grid-content bg-purple"><IndexList></IndexList></div>
      </el-col>
      <el-col :span="1"><div class="grid-content"></div></el-col>
      <el-col :span="4">
        <div class="grid-content bg-purple-light"><UserInfo></UserInfo>
        </div>
      </el-col>
      <el-col :span="1"><div class="grid-content"></div></el-col>
    </el-row>
  </div>
</template>

<script>
import UserInfo from "./UserInfo.vue";
import IndexList from "./IndexList.vue";
import PostForum from "./PostForum.vue";
import PageHeader from "./PageHeader.vue";
import SerachBar from "./SerachBar.vue";

export default {
  name: "HomePage",
  components: {
    UserInfo: UserInfo,
    IndexList:IndexList,
    PostForum:PostForum,
    PageHeader:PageHeader,
    SerachBar:SerachBar
  },
  data() {
    return {
      HdInfoData: {},
      isShow: false,
      scrolled: false,
      isSiH: true,
      circleId: "",
      isGoTop: false,
      showMoreMyCircle: true,
      ispop: true,
    };
  },
};
</script>

<style scoped>
.body {
  background-color: #f5f7f8;
}
.el-row {
  margin-bottom: 20px;
  /* &:last-child {
    margin-bottom: 0;
  } */
}
.el-col {
  border-radius: 5px;
}
.bg-purple-dark {
  background: #f5f7f8;
}
.bg-purple {
  background: #f5f7f8;
}
.bg-purple-light {
  background: #f5f7f8;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0px;
  background-color: #f9fafc;
}
.el-header,
.el-footer {
  background-color: #f5f7f8;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
